package com.macro.mall.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;
import java.util.List;

/**
 * 小红书订单查询参数
 * Created by AI on 2025/09/15.
 */
@Getter
@Setter
@ApiModel("小红书订单查询参数")
public class XhsOrderQueryParam {
    
    @ApiModelProperty(value = "搜索关键词：支持订单号或手机号")
    @Size(max = 50, message = "搜索关键词长度不能超过50字符")
    private String keyword;
    
    @ApiModelProperty(value = "订单状态列表：0->待付款；1->待使用；2->支付失败；3->已关闭；4->已退款；5->已使用")
    @Size(max = 10, message = "状态列表不能超过10个")
    private List<Integer> statusList;
    
    @ApiModelProperty(value = "单个订单状态：0->待支付；1->支付成功；2->支付失败；3->已取消；4->已退款；5->已完成")
    private Integer orderStatus;
    
    @ApiModelProperty(value = "订单来源：固定为小红书小程序")
    private String sourceType = "小红书小程序";
    
    @ApiModelProperty(value = "开始时间 yyyy-MM-dd")
    private String startTime;
    
    @ApiModelProperty(value = "结束时间 yyyy-MM-dd")
    private String endTime;
    
    @ApiModelProperty(value = "是否包含过期订单")
    private Boolean includeExpired = true;
    
    @ApiModelProperty(value = "外部订单ID精确匹配")
    private String outOrderId;
    
    @ApiModelProperty(value = "手机号精确匹配")
    private String phone;
}
